<div id="content_container">
  <div class="tab_wapper">
    <div class="tab"><img src="/images/confirm_pay.gif" alt="确认支付"></img>
    </div>
  </div>
  <div style="padding:1em;">
    <p>
      <label for="order_remark">订单编号：</label>
      <%=@order.id%>
    </p>
    <p>
      <label for="order_remark">支付账号：</label>
      <%=@user.login%>
    </p>
    <p>
      <label for="order_remark">支付金额：</label>
      <span class="yen"><%=@order.total_product_price%></span>
    </p>
    <p>
      <% payment_service_for @order.id, ALIPAY_ACCOUNT,
        :service => :alipay,
        :html => {:method=>"get",:id=>'alipay_form'} do |service|
        service.amount  @order.total_price
        service.notify_url url_for(:only_path => false, :action => 'alipay_ipn')
        service.return_url url_for(:only_path => false,
          :controller => 'store', :action => 'success')
        service.cancel_return_url url_for(:only_path => false,
          :controller => 'store', :action => 'fail')
        service.charset "utf-8"
        service.subject "DIY T-shirt 订单号#{@order.id}"
        service.payment_type "1"
        service.quantity 1
        service.logistics_type "EXPRESS"
        service.logistics_fee @order.logistics_fee
        service.logistics_payment "BUYER_PAY"
        service.seller   "seaman123@21cn.com"
        service.service "trade_create_by_buyer"
        service.sign
      %>
        <a href="javascript:void(0);"  onclick="$('form:first').submit();">
          <img src="/images/alipay.gif"  alt="到支付宝支付" />
        </a>
      <%end%>
    </p>





















  </div>


</div>

